//
//  SGHeader.m
//  post
//
//  Created by liu chao on 15/10/8.
//  Copyright (c) 2015年 liu chao. All rights reserved.
//  UUIDString = F483521B-8661-4781-A4DA-DCFA147DDEA9

#import "SGHeader.h"
#import "NSString+JSON.h"
#import <UIKit/UIKit.h>


//9.加密密钥
@implementation SGHeader


- (NSString *)token {
    
    if ([ZYUserManager userInfo].token) {
        return [ZYUserManager userInfo].token;
    }
     return @"fZ9W7xA+RcCUoZvp5jgIpRG6V9DQ";
//    return @"";
}

- (NSString *)pf{
    return @"ios";
}

- (NSString *)version{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}

- (NSString *)resolution{
    CGRect rect = [UIScreen mainScreen].bounds;
    CGSize size = rect.size;
    CGFloat scale = [UIScreen mainScreen].scale;
    CGFloat width = size.width*scale;
    CGFloat height = size.height*scale;
    return [NSString stringWithFormat:@"%.f*%.f",width,height];
}


////uuid
//- (NSString *)deviceId {
//    return [[UIDevice currentDevice].identifierForVendor UUIDString];


@end
